<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>
    <head>
        <title>Title</title>
        <%
            request.setAttribute("message","<h1>Hello</h1>");
            request.setAttribute("now",new Date());
        %>
    </head>
    <body>
        <c:choose>
            <c:when test="${param.a>0}">
                <h1>aaa</h1>
            </c:when>
            <c:when test="${param.a<0}">
                <h1>bbb</h1>
            </c:when>
            <c:otherwise>
                <h1>ccc</h1>
            </c:otherwise>
        </c:choose>

        <c:catch var="e">

            <%
                int i=1/0;
            %>


        </c:catch>

        ${e.message}<br/>

        ${message}<br/>

        <c:out value="${message}"></c:out><br/>

        <c:url value="/aaa"></c:url><br/>

        <a href="<c:url value='/index.jsp'></c:url>">index</a><br/>

        <a href="${pageContext.request.contextPath}/index.jsp">index</a><br/>


        <%--<%@ include file="/list.product"%>--%>

        <%--<jsp:include page="/list.product"></jsp:include>--%>

        <c:import url="http://127.0.0.1:8080/web/list.product" ></c:import><br/>
        <fmt:formatDate value="${now}" pattern="yyyy/MM/dd HH:mm:ss"></fmt:formatDate>

    </body>
</html>
